package com.srit.core.bean;

import java.lang.reflect.ParameterizedType;
import java.util.List;

import org.springframework.util.AutoPopulatingList;

/**
 * VO对象，为spring mvc 提供实现
 * 
 * @author guan
 * 
 * @param <T>
 */
public class BaseGroupVO<T> {

	private Class<T> entityClass;

	public BaseGroupVO() {
		entityClass = (Class<T>) ((ParameterizedType) getClass()
				.getGenericSuperclass()).getActualTypeArguments()[0];
		list = new AutoPopulatingList<T>(entityClass);
	}

	private List<T> list;

	public List<T> getList() {
		return list;
	}

	public void setList(List<T> list) {
		this.list = list;
	}

}
